//
//  HYCollectionViewCellImage.m
//  TTLestening
//
//  Created by dllo on 16/3/28.
//  Copyright © 2016年 dilo. All rights reserved.
//

#import "HYCollectionViewCellImage.h"
#import <SDWebImage/UIImageView+WebCache.h>

@interface HYCollectionViewCellImage ()

@property (nonatomic, retain) UIImageView *imageView;

@end

@implementation HYCollectionViewCellImage

- (instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    
    if (self) {
        
        self.imageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.imageView];
    }
    return self;
}

- (void)layoutSubviews {
    
    [super layoutSubviews];
    
    self.imageView.frame = CGRectMake(0, 0, self.contentView.frame.size.width, self.contentView.frame.size.height);
}

- (void)passModel:(NSString *)str {
    
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:str] placeholderImage:[UIImage imageNamed:@"iconfont-jiazai"]];
    
}


@end
